<?php
 $id=(isset($_GET['id']))?$_GET['id']:0;
 require ("LJSJK.php");
 $sql="delete from tb_emp where e_id={$id}";
 $rs=$db->query($sql);
 if ($rs==true)      //根据返回结果，做不同的响应
{   
    header("Location:LJ.php");//直接跳转
}
else
{
    // JavaScript弹出对话框跳转
    echo "<script language='javascript'>";
    echo "alert('留言删除失败！');";
    echo "window.location.href='LJ.php';";
    echo "</script>";
}
$db->close();

